home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _26EBA7F793574EB588E48C403F11E5E6 < prev    next >
Text File  |  2005-04-12  |  7KB  |  179 lines

  1. <xsl:stylesheet version='1.0' 
  2.                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3.                 xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4.                 xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5.                 xmlns:slash='http://purl.org/rss/1.0/modules/slash/' 
  6.                 xmlns:dc='http://purl.org/dc/elements/1.1/' 
  7.                 exclude-result-prefixes='content slash dc'>
  8.  
  9.           <xsl:output method='xml' indent='yes' /> 
  10.  
  11.  
  12.           <!-- channel group newspaper -->
  13.           <xsl:template match="newspaper[@type='group']">
  14.             <html><head><title><xsl:value-of select='title'/></title>
  15.             <!-- <base href="{//channel/link}" /> -->
  16.             <style type="text/css">
  17.                   body { background-color: #FFFFFF; color: #000000; font-size: 80%; font-family: Tahoma, Verdana, Arial, sans-serif; margin: 2px 28px; }
  18.                   h1,h2,h3,h4,h5,h6 { font-size: 80%; font-weight: bold; font-style: italic;    }
  19.                a:hover { 
  20.                 color: #FF6600;
  21.                 text-decoration: none
  22.                 }
  23.  
  24.                 .ChannelTitle { font-weight: bold; font-size: 120%; text-align: center; text-transform: uppercase; margin: 10px 0}
  25.                 li {
  26.                 margin-bottom: 3px 
  27.                 }
  28.               </style>        </head>
  29.               <body>
  30.             <table height="100%" width="100%">
  31.               <xsl:for-each select="//channel">
  32.               <tr>                
  33.                 <td class="PostFrame" height="100%" width="100%" valign="top">
  34.                    <div class="ChannelTitle">                     
  35.                     <xsl:value-of  disable-output-escaping='yes' select='current()/title'/>                      
  36.                     </div>
  37.                                  
  38.                   <div class="PostContent">
  39.                  <ol>
  40.                       <xsl:for-each select='current()//item'>
  41.                     <li>    
  42.                       <a href='{current()/link}'>
  43.                         <xsl:value-of disable-output-escaping="yes" select="current()/title"/>
  44.                       </a>
  45.                     </li>
  46.                       </xsl:for-each>
  47.                       </ol>
  48.                   </div>
  49.                   </td>
  50.                 </tr>
  51.               </xsl:for-each>
  52.               </table>
  53.               </body></html>
  54.             </xsl:template>
  55.  
  56.             <!-- channel newspaper -->
  57.             <xsl:template match="newspaper[@type='channel']">
  58.               <html><head><title><xsl:value-of select='//channel/title'/></title>
  59.               <base href="{//channel/link}" />
  60.               <style type="text/css">
  61.                 body { background-color: #FFFFFF; color: #000000; font-size: 80%; font-family: Tahoma, Verdana, Arial, sans-serif; margin: 2px 28px; }
  62.                   h1,h2,h3,h4,h5,h6 { font-size: 80%; font-weight: bold; font-style: italic;    }
  63.                a:hover { 
  64.                 color: #FF6600;
  65.                 text-decoration: none
  66.                 }
  67.  
  68.                 .ChannelTitle { font-weight: bold; font-size: 120%; text-align: center; text-transform: uppercase; margin: 10px 0}
  69.                 li {
  70.                 margin-bottom: 3px 
  71.                 }
  72.  
  73.                 </style>        </head>
  74.                 <body>
  75.                   <table height="100%" width="100%">
  76.                 <tr>
  77.                   <td class="PostFrame" height="100%" width="100%" valign="top">                  
  78.                     <div class="ChannelTitle">                     
  79.                     <xsl:value-of  disable-output-escaping='yes' select='//channel/title'/>                      
  80.                     </div>
  81.                     <!-- <div class="PostInfos">
  82.                     <b><xsl:value-of disable-output-escaping='yes' select="current()/category"/></b>
  83.                     </div> -->
  84.                     <div class="PostContent">
  85.                       <ol>
  86.                       <xsl:for-each select='//item'>
  87.                     <li>    
  88.                       <a href='{current()/link}'>
  89.                         <xsl:value-of disable-output-escaping="yes" select="current()/title"/>
  90.                       </a>
  91.                     </li>
  92.                       </xsl:for-each>
  93.                       </ol>
  94.                       </div>
  95.                     </td>
  96.                   </tr>
  97.                 </table>
  98.                 </body></html>
  99.                   </xsl:template>
  100.  
  101.  
  102.                   <!-- single news item -->
  103.                   <xsl:template match="newspaper[@type='newsitem']">
  104.                 <html><head><title><xsl:value-of select='//item/title'/></title>
  105.                 <base href="{//item/link}" />
  106.                 <style type="text/css">
  107.                   body { background-color: #FFFFFF; color: #000000; font-size: 80%; font-family: Tahoma, Verdana, Arial, sans-serif; margin: 2px 28px; }
  108.                   h1,h2,h3,h4,h5,h6 { font-size: 80%; font-weight: bold; font-style: italic;    }
  109.                   .PostTitle{
  110.                   font-weight: bold; 
  111.                   margin: 10 px 0;                  
  112.                   }                                   
  113.                    a:hover { 
  114.                    color: #FF6600;
  115.                    text-decoration: none
  116.                    }
  117.  
  118.                   .PostTitle a:hover {
  119.                   border-width: 0px;
  120.                   text-decoration: underline;
  121.                   }                 
  122.  
  123.                   div.PostSignature { 
  124.                   text-align: right;
  125.                   font-family: "trebuchet ms", "lucida grande", verdana, arial, sans-serif;    
  126.                   font-size: xx-small; 
  127.                   font-style: italic;
  128.                   }
  129.  
  130.                   .PostSignature a { font-size: x-small; }
  131.                   </style>        </head>
  132.                   <body>
  133.                     <table height="100%" width="100%">
  134.                       <tr>
  135.                     <td class="PostFrame" height="100%" width="100%" valign="top">                     
  136.                       <div class="PostTitle">
  137.                         <a href='{//item/link}'>
  138.                           <xsl:value-of  disable-output-escaping='yes' select='//item/title'/>
  139.                         </a>
  140.                       </div>                     
  141.                       <div class="PostContent">
  142.                         <xsl:choose>
  143.                           <xsl:when test='//item/xhtml:body'>
  144.                         <xsl:copy-of select='//item/xhtml:body'/>
  145.                           </xsl:when>
  146.                           <xsl:when test='//item/content:encoded'>
  147.                         <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/>
  148.                           </xsl:when>
  149.                           <xsl:otherwise>
  150.                         <xsl:value-of disable-output-escaping='yes' select='//item/description'/>
  151.                           </xsl:otherwise>
  152.                         </xsl:choose>
  153.                       </div>
  154.                       <div class="PostSignature">
  155.                         <a href='{//channel/link}' title='{//channel/description}'><xsl:value-of disable-output-escaping='yes'  select='//channel/title'/></a>
  156.                         <br />Published:
  157.                         <xsl:if test="//item/dc:creator and //item/dc:creator!=''">
  158.                           <xsl:value-of disable-output-escaping='yes' select='//item/dc:creator'/>
  159.                           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  160.                           </xsl:if><xsl:if test="//item/author and //item/author!=''">
  161.                           <xsl:value-of disable-output-escaping='yes' select='//item/author'/>
  162.                           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  163.                         </xsl:if>
  164.                         <xsl:value-of select='//item/pubDate'/>
  165.                         <xsl:if test='//item/enclosure'>
  166.                           <br />
  167.                           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  168.                           <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/enclosure/@url'/><xsl:text disable-output-escaping='yes'>'></xsl:text>
  169.                           Enclosure (<xsl:value-of select='//item/enclosure/@type'/>, <xsl:value-of select='//item/enclosure/@length'/> Bytes)
  170.                           <xsl:text disable-output-escaping='yes'></a></xsl:text>                
  171.                         </xsl:if>            
  172.                       </div>
  173.                     </td>
  174.                       </tr>
  175.                     </table>
  176.                     </body></html>
  177.                   </xsl:template>
  178.                 </xsl:stylesheet>
  179.